package com.dzl.goods.service;

import com.dzl.base.service.BaseService;
import com.dzl.goods.pojo.WelfareGoodsCategoryRel;

import java.util.List;

/**
 * 集采商品品类表(WelfareGoodsCategoryRel)表服务接口
 * @author liuguanjun
 * @date 2021-12-16 11:47:07
 */
public interface WelfareGoodsCategoryRelService extends BaseService<WelfareGoodsCategoryRel> {


    /**
     * 根据商品id获取关联品类
     * @param goodsId 商品id
     * @author liuguanjun
     * @date 2021-12-17 10:05:03
     **/
    List<WelfareGoodsCategoryRel> selectGoodsCategoryRelByGoodsId(Integer goodsId);

    /**
     * 选择商品，保存品类与商品关联关系
     * @param goodsIds 选中的商品
     * @param categoryId 品类id
     * @author liuguanjun
     * @date 2021/12/20 15:20
     */
    Integer saveGoodsCategoryRel(Integer categoryId,String goodsIds);

    /**
     * 删除品类关联集采商品
     * @param goodsId 选中的商品id
     * @param categoryId 品类id
     * @author liuguanjun
     * @date 2022/01/06 09:43
     */
    Integer deleteCategoryRelGoods(Integer categoryId,Integer goodsId);

}